05. Exercise: Create the MiniPaint Project

22 04 AAK Create Project SC V2

Android Developer Documentation

Exercise

In this exercise you are going to create a MiniPaint project.

  1. Create a new Kotlin project called MiniPaint that uses the Empty Activity template.

  2. Open the app/res/values/colors.xml file and add the following two colors. One for the background, and one for drawing.

<color name="colorBackground">#FFFF5500</color>
<color name="colorPaint">#FFFFEB3B</color>
  1. Open styles.xml

  2. In the parent of the given AppTheme style, replace DarkActionBar with NoActionBar. This removes the action bar, so that you can draw fullscreen.

<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">